package com.ruoyi.mobile.mapper;

import com.ruoyi.mobile.domain.HuaweiHealthBluetoohDetail;
import com.ruoyi.mobile.domain.HuaweiHealthDetail;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 华为健康详情数据Mapper接口
 * 
 * @author ruoyi
 * @date 2022-09-23
 */
public interface HuaweiHealthBluetoohDetailMapper
{


    /**
     * 查询华为健康详情数据列表
     * 
     * @param HuaweiHealthBluetoohDetail 华为健康详情数据
     * @return 华为健康详情数据集合
     */
    public List<HuaweiHealthBluetoohDetail> selectHuaweiHealthBluetoohDetailList(@Param("userId") int userId, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);

    public int insertHuaweiHealthBluetoohDetail(HuaweiHealthBluetoohDetail huaweiHealthBluetoohDetail);

    public int updateHuaweiHealthBluetoohDetail(HuaweiHealthBluetoohDetail huaweiHealthBluetoohDetail);

    public Integer selectIdByUserIdAndTime(@Param("userId") int userId, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);

    public List<HuaweiHealthBluetoohDetail> selectDataByUserIdAndTime(@Param("userId") int userId, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);

}
